package com.yyt.yytcodesandbox.sercurity;

import java.security.Permission;

public class DefaultSecurityManager extends SecurityManager{
    @Override
    public void checkPermission(Permission perm) {
    }

    @Override
    public void checkExec(String cmd) {
        throw new SecurityException("checkExec 权限异常"+cmd);
    }

    @Override
    public void checkWrite(String file) {
        throw new SecurityException("checkWrite 权限异常"+file);
    }

    @Override
    public void checkDelete(String file) {
        throw new SecurityException("checkDelete 权限异常"+file);
    }

    @Override
    public void checkConnect(String host, int port) {
        throw new SecurityException("checkConnect 权限异常"+host+":"+port);
    }
}
